include(CheckIncludeFile)

CHECK_INCLUDE_FILE(sys/poll.h HAVE_SYS_POLL_H)
CHECK_INCLUDE_FILE(sys/select.h HAVE_SYS_SELECT_H)
CHECK_INCLUDE_FILE(sys/utsname.h HAVE_UTSNAME_H)

CHECK_INCLUDE_FILE(stdint.h HAVE_STDINT_H)
CHECK_INCLUDE_FILE(getopt.h HAVE_GETOPT_H)
CHECK_INCLUDE_FILE(ctype.h HAVE_CTYPE_H)
CHECK_INCLUDE_FILE(inttypes.h HAVE_INTTYPES_H)

CHECK_INCLUDE_FILE(arpa/nameser.h HAVE_ARPA_NAMESER_H)

CHECK_INCLUDE_FILE(ltdl.h HAVE_LTDL_H)
CHECK_INCLUDE_FILE(dlfcn.h HAVE_DLFCN_H)
CHECK_INCLUDE_FILE(libgen.h HAVE_LIBGEN_H)